/////////////////
//to show Image//
/////////////////
function showImage(name,width,height)
{
	myWindow = open ("PictureView.asp?imagename="+name+"&width="+width+"&height="+height,"","scrollbars=no,resizable=yes,left=400,top=300,height=1,width=1");
}

//////////////////////////
//to show Privtae Policy//
//////////////////////////
function privatePolicy()
{
	myWindow = open ("PrivatePolicy.asp","privatepolicy","scrollbars=yes,resizable=no,width=600,height=300,left=50,top=50");
}

//////////////////////
//to show Disclaimer//
//////////////////////
function disclaimer()
{
	myWindow = open ("Disclaimer.asp","disclaimer","scrollbars=yes,resizable=no,width=600,height=300,left=50,top=50");
}

////////////////////////
//to show Terms of Use//
////////////////////////
function termsOfUse()
{
	myWindow = open ("TermsOfUse.asp","termsOfUse","scrollbars=yes,resizable=no,width=600,height=300,left=50,top=50");
}

///////////////////////////
//to show Discount Coupon//
///////////////////////////
function DiscountCoupon(intAdvertiserID)
{
	myWindow = open ("DiscountCoupon.asp?advertiserID="+intAdvertiserID,"","scrollbars=yes,resizable=no,width=600,height=300,left=50,top=50");
}

////////////////////////////////////////////
//to marquee at the status bar of the page//
////////////////////////////////////////////
var ShowString = "                                         "
               + "          Comprehensive Online Gurgaon Yellow Pages "
               + "from Vini Infinity InfoTech Private Limited  "
               + "             "
var ShowWidth  = 400
var ShowHead   = 0
var ShowTail   = ShowWidth
var ShowLength = ShowString.length
function Marquee()
{
	var DisplayString
	
	if (ShowHead < ShowTail)
		DisplayString = ShowString.substring(ShowHead, ShowTail)
	else
		DisplayString = ShowString.substring(ShowHead, ShowLength)
		              + ShowString.substring(       0, ShowTail)

		ShowHead = (ShowHead + 1 ) % ShowLength

		ShowTail = (ShowTail + 1 ) % ShowLength

		window.status = DisplayString
	
		TimerID = setTimeout("Marquee()", 110) //Change the number to change the speed (the fewer, the faster)
}

//////////////////////////
//to show advertiserpage//
//////////////////////////
function advertiserDetail(intAdvertiserID)
{
	myWindow = open ("AdvertiserDetail.asp?advertiserID="+intAdvertiserID,"","scrollbars=yes,resizable=yes,left=0,top=0,height=600,width=800");
}
//////////////////////
//to show writerpage//
//////////////////////
function writerDetail(intWriterID)
{
	myWindow = open ("WriterDetail.asp?writerID="+intWriterID,"","scrollbars=yes,resizable=no,left=50,top=50,height=400,width=650");
}

/////////////////////
//to show poet page//
/////////////////////
function poetDetail(intPoetID)
{
	myWindow = open ("PoetDetail.asp?poetID="+intPoetID,"","scrollbars=yes,resizable=no,left=50,top=50,height=400,width=650");
}

///////////////////////
//to show painter page/
///////////////////////
function painterDetail(intPainterID)
{
	myWindow = open ("PainterDetail.asp?painterID="+intPainterID,"","scrollbars=yes,resizable=no,left=50,top=50,height=400,width=650");
}

//////////////////////////
//to disable right click//
//////////////////////////
if (window.Event) // Only Netscape will have the CAPITAL E.
	document.captureEvents(Event.MOUSEUP); // catch the mouse up event
 
function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
{
	event.cancelBubble = true
	event.returnValue = false;
	return false;
}
 
function norightclick(e) // This function is used by all others
{
	if (window.Event) // again, IE or NAV?
	{
		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