﻿function applyVIP(){
	location="/userprofile.asp"
}

function timer(t){
setTimeout("self.close()" , t)
}

function checkRadio(obj){
	if (obj.length!=null){
		for(var i=0;i<obj.length;i++){
			//alert(obj[i].value.substring(0,10))
			if (obj[i].value.substring(0,10)=="UPS Ground") { 
				obj[i].checked=true;
				break;
			}
			else {
				if (i==obj.length-1) obj[obj.length-1].checked=true
			}
		}
	}
	else obj.checked=true;
}

function discountDetail(did){
	var w=window.open("/store/discountDetail.asp?did="+did,"","status=yes,scrollbars=yes,width=430,height=250,left=100,top=40");
}

function orderTrack(did){
	location="/includes/Tracking/orderTrack.asp?tid="+did
}

function winopen(url,stuff,morestuff) 
{
	var popwin = window.open(url,stuff,morestuff);
	
	// you may get "undefined" if a popup blocker did its thing...
	if( typeof(popwin) != "undefined" && popwin )
	{
		popwin.focus();
	}
	
	lastPopup = popwin;
}

