function getMediaServerName(iid,vid,mode){
var Check=new net.ContentLoader("play.html?iid="+iid+"&vid="+vid+"&mode="+mode,procCheck,"get","text",null);
}
function getMediaServerName1(sceneid,iid,vid,start,stime){
var Check=new net.ContentLoader("play.html?iid="+iid+"&scenceid="+sceneid+"&vid="+vid+"&start="+start+"&time="+stime,procCheck,"get","text",null);
}
function getMediaServerName2(iid,vid){
var start=getNum(document.scene.playstart.value);
if(start == ""){
document.scene.playstart.focus();
return;
}
var stime=getNum(document.scene.playtime.value);
if(stime== ""){
document.scene.playtime.focus();
return;
}
var Check=new net.ContentLoader("play.html?iid="+iid+"&vid="+vid+"&start="+start+"&time="+stime,procCheck,"get","text",null);
}
function procCheck(){
var flag=this.req.responseText;
if(flag!=null && flag!=""){
if(flag.toLowerCase().indexOf("<head>")==-1){
window.location=flag;
}else{
window.location="aksignin.html?redirecturl=$selfUrl";
}
}
}
function Num(c) {
var a="0123456789";
var y;
var done =true;
y=a.indexOf(c);
if (y==-1){
done=false;
return done;
}
return done;
}
function getNum(str) {
var i,s;
var x="";
for (i=0;i<str.length;i++) {
if(Num(str.charAt(i))){
x+=str.charAt(i);
}
}
return x;
}
function PopWindow(myimage,w,h,pos){

var win=null;
pos="center";

ww=w+60;
wh=h+80;
myleft=(screen.width-ww)/2;
mytop=(screen.height-wh)/2;
settings="width=" + ww + ",height=" + wh + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";
win=window.open("","",settings);
if(win!=null){
   var mypagecontent="<ht"+"ml><bo"+"dy><he"+"ad><ti"+"tle>- Click window to close</ti"+"tle>";
   mypagecontent += "<st" + "yle type=\"text/css\">img {behavior: url(\"assets/pngbehavior.htc\");}</st" + "yle>";
   mypagecontent += "</he"+"ad>";
   mypagecontent+="<bo"+"dy bgcolor=#FFFFFF marginheight=0 marginwidth=0 leftmargin=0 ";
   mypagecontent+="topmargin=0 rightmargin=0 onBlur=javascript:self.close(); onClick=javascript:self.close();>";
   mypagecontent+="<cen"+"ter><ta"+"ble align=center height=100% width=100% border=0><tb"+"ody valign=middle><tr valign=middle><td align=center valign=middle >";
   mypagecontent+="<p><img src="+myimage+" name=image width="+w+" height="+h+"/>";
   mypagecontent+="</td></tr></tb"+"ody></tab"+"le></cent"+"er></b"+"ody></ht"+"ml>";
   win.document.write(mypagecontent);
   win.document.close();
}
win.focus();
}
