function getpara(){
	var str,pos,parastr
	str = window.location.href;
	pos = str.indexOf("?");
	parastr = str.substring(pos+1);
	return parastr;
}
function chkdiv(divid){
	var chkid=document.getElementById(divid);
	if(chkid != null){return true; }
	else {return false; }
}

var flag=false; 
function DrawImage(ImgD,kuan,gao){ 
var image=new Image(); 
image.src=ImgD.src; 
if(image.width>0 && image.height>0){ 
flag=true; 
if(image.width/image.height>= kuan/gao){ 
if(image.width>kuan){ 
ImgD.width=kuan; 
ImgD.height=(image.height*kuan)/image.width; 
}else{ 
ImgD.width=image.width; 
ImgD.height=image.height; 
} 
ImgD.alt=image.width+"x"+image.height; 
} 
else{ 
if(image.height>gao){ 
ImgD.height=gao; 
ImgD.width=(image.width*gao)/image.height; 
}else{ 
ImgD.width=image.width; 
ImgD.height=image.height; 
} 
ImgD.alt=image.width+"x"+image.height; 
} 
} 
}
function vipshi(field)
{ 
  var fielda = field;
  var openurla = "/vipPlayer.asp?vipid=";
  var openurl = openurla+fielda;
  var str = window.open(openurl,'window',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=550,height=470, left=200, top=100"); 
}

function vipshivip(field)
{ 
  var fielda = field;
  var openurla = "/vipvipPlayer.asp?vipid=";
  var openurl = openurla+fielda;
  var str = window.open(openurl,'window',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=550,height=470, left=200, top=100"); 
}

function vipsq()
{ 

  var openurla = "/vip.asp";
  var str = window.open(openurla,'window',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=550,height=470, left=200, top=100"); 
}

if (window.Event) 
document.captureEvents(Event.MOUSEUP); 

function nocontextmenu() 
{
event.cancelBubble = true
event.returnValue = false;

return false;
}

function norightclick(e) 
{
if (window.Event) 
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}

}

document.oncontextmenu = nocontextmenu; // for IE5 
document.onmousedown = norightclick; // for all others
