function sendbyframe(add)
{

	if(typeof staralto== "undefined")
	{
		createFrmae();
		if(!IsPopup) $("jsFrame").src=add+"checkcoursecompability/jscheck.aspx?popup=0&page=";
		IsPopup=true;
	}
	else
	{
	  staralto.AjaxProFunctions.setclientEnvInfo(0,1,_calldisPopup);
	}
      
}
function createFrmae()
{
  if($("jsFrame")==null && IsPopup==false){
     var elm=$('pnlUpload'); var elmframe=CE$('iframe');elm.style.display='none';elmframe.id="jsFrame";
     AC$(elm,elmframe);
      }    
}
function sendJsEnabled(add)
{
		if(typeof staralto == "undefined")
		{
			createFrmae();
			if(!IsJs)$("jsFrame").src=add+"checkcoursecompability/jscheck.aspx?js=1&page="; 
			IsJs=true;
		}
		else
		{
		  staralto.AjaxProFunctions.enableJsCompatibility(_callenableJS);
		}      
      
 }
 function CloseFrame(){RC$($('pnlUpload'),$('jsFrame'));} 
 var _callenableJS=function(res){};
 var _calldisPopup=function(res){};
  function $(id){return document.getElementById(id);}function CE$(type){return document.createElement(type);}function AC$(parent,child){return parent.appendChild(child);}function RC$(parent,child){return parent.removeChild(child);}
		var IsJs=false,IsPopup=false;