﻿// JScript File

//function showPopUp(control){
//var v = '';
// = control.attributes["text"].value;
//alert(v);
// window.showModalDialog("Personal_Core/FSFrozenHealthInformation.aspx","Dialog Box Arguments # 1","dialogHeight: 400px; dialogWidth: 500px; dialogTop: 200px; dialogLeft: 200px; edge: Raised; center: Yes; help: No; resizable: Yes; status: No;");
////win.document.write(""+v+"");

//}


function showPopUp()
{
  
 //document.getElementById(control.id).disabled =true;
  
  //window.open('Personal_Core/FSFrozenHealthInformation.aspx', 'popup', 'scrollbars= yes,width=400 height=200,resizable = yes ,toolbar = no, status = no ');
 if (window.showModalDialog)
	{
      var dialogArguments = new Object();
      window.showModalDialog("Personal_Core/FSPopupInformation.aspx","Dialog Box Arguments # 1","dialogHeight: 400px; dialogWidth: 500px; dialogTop: 200px; dialogLeft: 200px; edge: Raised; center: Yes; help: No; resizable: Yes; status: No;");
    }
    
    else
    {
      winHandle=   window.open('Personal_Core/FSPopupInformation.aspx', 'popup', 'scrollbars= yes,width=400 height=200,resizable = yes ,toolbar = no, status = no ');
      winHandle.focus(); 
    }
    return false;
  //  document.getElementById(control.id).disabled =false;
}

//To open the college profile
function showPopUpforCollegeProfile()
{
  winHandle = window.open('~/CollegeProfile.aspx','popup', 'scrollbars= yes,width=400 height=200,resizable = yes ,toolbar = no, status = no ');
  winHandle.focus();
}


function showPopUpforadmitCard(candId,formId)
{
  var url = "AdmitCard.aspx?A787GH6A="+candId+"&FFG78A1="+formId;
  //alert (url);
  winHandle = window.open(url,'popup', 'scrollbars= yes,width=580 height=700,resizable = no ,toolbar = no, status = no ');
  winHandle.focus();
  winHandle.moveTo(0,0);
}

function showPopUpforMailForm(tranId)
{
  var url = "MailForm.aspx?A121O98="+tranId;
  //alert (url);
  winHandle = window.open(url,'popup', 'scrollbars= yes,width=640 height=700,resizable = no ,toolbar = no, status = no ');
  winHandle.focus();
  winHandle.moveTo(0,0);
}

function showPopUpforCollegeProfile(cURL)
{
 
  //alert (url);
  winHandle = window.open(cURL,'popup', 'scrollbars= yes,width=50 height=700,resizable = yes ,toolbar = no, status = no ');
  winHandle.focus();
  winHandle.moveTo(0,0);
}

function showPopUpforPrivacy()
{
 
  
  winHandle = window.open("Content/Privacy.htm",'popup', 'scrollbars= yes,width=600 height=700,resizable = yes ,toolbar = no, status = no ');
  winHandle.focus();
  winHandle.moveTo(0,0);
}
function showPopUpforContact()
{
 
  
  winHandle = window.open("Content/ContactUs.htm",'popup', 'scrollbars= yes,width=600 height=320,resizable = yes ,toolbar = no, status = no ');
  winHandle.focus();
  winHandle.moveTo(0,0);
}
function showPopUpforSMSTerms()
{
 
  
  winHandle = window.open("Content/SMSTerms.htm",'popup', 'scrollbars= yes,width=600 height=500,resizable = yes ,toolbar = no, status = no ');
  winHandle.focus();
  winHandle.moveTo(0,0);
}
function showPopUpforArticlesTerms()
{
 
  
  winHandle = window.open("../Content/ArticleTerms.htm",'popup', 'scrollbars= yes,width=600 height=500,resizable = yes ,toolbar = no, status = no ');
  winHandle.focus();
  winHandle.moveTo(0,0);
}

function showPopUpforAbout()
{
 
 
  winHandle = window.open("Content/AboutUs.htm",'popup', 'scrollbars= yes,width=600 height=390,resizable = yes ,toolbar = no, status = no ');
  winHandle.focus();
  winHandle.moveTo(0,0);
}

function Show_consultant()
{
window.open('Content/Consultancy.htm','popup', 'scrollbars= yes,width=600 height=550,resizable = yes ,toolbar = no, status = no ');
}



