function ping() { window.location.href="/anshul.shrivastava/ping/"; }
function download(type) { switch(type) { case "doc": window.location.href="/anshul.shrivastava/docs/anshul_shrivastava.doc.php"; break; case "pdf": window.location.href="/anshul.shrivastava/docs/anshul_shrivastava.pdf.php"; break; case "htm": window.location.href="/anshul.shrivastava/resume/preview/"; break; default: break; } }
function gotoVideoPage(youTube)
{
	setCookie('youTube', youTube, 365);
	document.forms['connect'].youTube.value = youTube;
	document.forms['connect'].youPage.value = getCookie('youPage');
	document.forms['connect'].submit();
}
function gotoPage(youPage)
{
	setCookie('youPage', youPage, 365);
	document.forms['connect'].youPage.value = youPage;
	document.forms['connect'].youTube.value = getCookie('youTube');
	document.forms['connect'].submit();
}

function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  var c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    var c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toUTCString());
}

// anshul shrivastava
