function validate(){
/*extern alert, document */
if( ( document.send2friendForm.frmail.value.search("@") === -1 ) || ( document.send2friendForm.frmail.value.search("[.*]" ) === -1 ) || ( document.send2friendForm.yrmail.value.search("@") === -1 ) || ( document.send2friendForm.yrmail.value.search("[.*]" ) === -1 ) || ( document.send2friendForm.yrname.value === "" ) || ( document.send2friendForm.frname.value === "" ) ){
alert( "Please make sure the form is complete and valid." );
return false;
} else if( ( document.send2friendForm.frmail.value.search(";") !== -1 ) || ( document.send2friendForm.frmail.value.search(",") !== -1 ) || ( document.send2friendForm.frmail.value.search(" ") !== -1 ) ){
alert( "You cannot enter more than one email address" );
return false;
} else if( ( document.send2friendForm.yrmail.value.search(";") !== -1 ) || ( document.send2friendForm.yrmail.value.search(",") !== -1 ) || ( document.send2friendForm.yrmail.value.search(" ") !== -1 ) ){
alert( "You cannot enter more than one email address" );
} else {
document.send2friendForm.submit();
return true;
}
}
function clickclear(thisfield, defaulttext){
if(thisfield.value === defaulttext){
thisfield.value = "";
}
}
function clickrecall(thisfield, defaulttext){
if(thisfield.value === ""){
thisfield.value = defaulttext;
}
}
function setOpacity(aImage, aType){
if(aType === 1){
aImage.filters.alpha.opacity=100;
}else {
aImage.filters.alpha.opacity=38;
}}
function openwinbook(url, winname, sizew, sizeh)
{
/*extern open */
var winout=open(url,winname,'height=300,width=300');
}
function breakframe()
{
/*extern self, top */
if(self !== top){
top.location.href = self.location.href;
}
}
function clearbox(which){
which.value='';
}
function bookmarknow(opt)
{
/*extern document, open, window */
var url,title;
if(eval(opt) === 1)
{
url = "http://www.BollywoodSargam.com";
title = "Bollywood Sargam : Movies, Bollywood News, Reviews, Hot Photo Gallery Of Bollywood Actors and Actresses";
} else if(eval(opt) === 2){
url = "http://www.BollywoodSargam.com/Dating";
title = "Bollywood Sargam Dating: Get your soulmate, Free profile, Free Membership, Safe and Secure Dating";
} else{
url = "http://www.BollywoodSargam.com";
title = "Bollywood Sargam : Movies, Bollywood News, Reviews, Hot Photo Gallery Of Bollywood Actors and Actresses";
}
if(document.all){ 
window.external.AddFavorite (url,title);
}
if(document.layers){
bookmarknow = open("", "displayWindow", "width=200,height=100,status=no,toolbar=no,menubar=no");
bookmarknow.document.open();
bookmarknow.document.write("<html><body bgcolor='blue' text='white' link='white'><center>Please Bookmark this Page Press CTRL+D after closing. Thanks<br> <a href='javascript:self.close();'>Close this window</a></font></center></body></html>");
bookmarknow.document.close() ;
}}
// *** Change this variable ***
// should be the URL to the cgi script
var path_to_cgi="http://www.bollywoodsargam.com/send2friend.php";
// You dont need to change anything else
path_to_cgi += '?url=' + escape(document.location);
function tell_friend(){
/*extern path_to_cgi, window */
window.open(path_to_cgi,"FRIENDS01","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESIZABLE=NO,SCROLLBARS=YES,TOP=100,LEFT=390,WIDTH=425,HEIGHT=500");
}
function showup(myrandaid,mytitle,mycategU)
{
/*extern top */
var sendtopage = '/answers_viewprofile.php?memberid='+myrandaid+'&amp;membername='+mytitle;
top.location.href = sendtopage;
}
function showvideos(myrandaid,mytitle,mycategU)
{
/*extern top */
var mycateg = mycategU.toLowerCase();
var mynewtitle = mytitle.replace(/_Movie/i,"");
mynewtitle = mynewtitle.replace(/_/g,"+");
var sendtopage = '/'+mycateg+'_videos.php?search_term='+mynewtitle+'&amp;myname='+myrandaid;
top.location.href = sendtopage;

}
function shownews(myrandaid,mytitle,mycategU)
{
/*extern top */
var mynewtitle = mytitle.replace(/_Movie/i,"");
mynewtitle = mynewtitle.replace(/_/g,"+");
var sendtopage = '/news_search.php?search_term='+mynewtitle+'&amp;myname='+myrandaid;
top.location.href = sendtopage;
}
var xmlHttp;
function showUserVideos(user,perpage,pagenum)
{ 
/*extern GetXmlHttpObject, Math, alert, stateChanged, xmlHttp */
xmlHttp=GetXmlHttpObject();
if(xmlHttp===null)
{
alert ("Your browser does not support JavasCript AJAX! Please upgrade your Browser to enjoy more from BollywoodSARGAM.com website");
return;
} 
var url="/myajax/bollywoodsargam_ajax_video_by_user.php";
url=url+"?user="+user;
url=url+"&perpage="+perpage;
url=url+"&pagenum="+pagenum;
url=url+"&rand="+Math.random();
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.send(null);
}

function showYoutubeTags(user,perpage,pagenum)
{
var sendtopage = '/bollywoodsargam_search.php?search_term='+user;
top.location.href = sendtopage;
}

function flagYoutubeVideo(user,videoid)
{ 
/*extern GetXmlHttpObject, Math, alert, stateChangedFlag, xmlHttp */
xmlHttp=GetXmlHttpObject();
if(xmlHttp===null)
{
alert ("Your browser does not support JavasCript AJAX! Please upgrade your Browser to enjoy more from BollywoodSARGAM.com website");
return;
} 
var url="/myajax/bollywoodsargam_ajax_flag_video.php";
url=url+"?user="+user;
url=url+"&videoid="+videoid;
url=url+"&rand="+Math.random();
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange=stateChangedFlag;
xmlHttp.send(null);
}
function stateChangedFlag(){
/*extern alert, xmlHttp */
if(xmlHttp.readyState===4){if(xmlHttp.status !== 200){alert("Sorry error occured on server");return;} else {alert("Thank you, We recived your request successfully!");return;}}
}
function tagvalidate(){
/*extern alert, document, showYoutubeTags */
if( document.searchbyTagForm.tag.value === "" ){
alert( "Please make sure you are entering valid tag." );
return false;
} else if(document.searchbyTagForm.tag.value.length < 3) {
alert( "Come on atleast enter a good long search tag word more than 2 characters" );
} else {
var mytag = document.searchbyTagForm.tag.value;
showYoutubeTags(mytag,4,1);
return true;
}}
function stateChanged() 
{
/*extern document, xmlHttp */
if(xmlHttp.readyState===4){if(xmlHttp.status !== 200){document.getElementById("bsajaxdata").innerHTML= "<br><br><br>Sorry....<br><br><br><br>The Server did not return any results (Result code: 200)<br><br><br><br>Please try again<br><br>Sorry for the Inconvenience";} else {document.getElementById("bsajaxdata").innerHTML=xmlHttp.responseText;}
}
if(xmlHttp.readyState===1 || xmlHttp.readyState===2 || xmlHttp.readyState===3)
{
document.getElementById("bsajaxdata").innerHTML= "<br><br><br>Searching....<br><br><br><br>Please wait<br><br><br><br>We are searching<br><br>10 Million Videos and<br><br>more than 1 million<br><br>user records<br><br><br><br>Loading .....<br><br><br><br>Please wait ...";
}}
function GetXmlHttpObject()
{
/*extern ActiveXObject, XMLHttpRequest */
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var defaultMenuWidth="400px"; //set default menu width.
var linkset=new Array();
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
linkset[0]='<table border="0" width="100%" cellspacing="1" cellpadding="0">';
linkset[0]+='<tr><td colspan="5" class="bgbollywoodsargam" align="center"><a name="navigation"></a>BollywoodSARGAM Entertainment Channels</td><td colspan="2" class="bgbollywoodsargam" align="center"> Latest <A href="http://www.BollywoodSargam.com/rss/bollywoodsargam_rss.php" target="_blank"><img src="http://img.bollywoodsargam.com/myimages/xmlrss2.png" alt="Click here to add BollywoodSARGAM Latest Videos, Photos and News RSS 2.0 feed to your RSS Reader" width="80" height="15"></A></td><td colspan="2" class="bgbollywoodsargam" align="center"> Top <A href="http://www.BollywoodSargam.com/rss/bollywoodsargam_rss.php?sort=top" target="_blank"><img src="http://img.bollywoodsargam.com/myimages/xmlrss2.png" alt="Click here to add BollywoodSARGAM Top Videos, Photos and News RSS 2.0 feed to your RSS Reader" width="80" height="15"></A></td></tr>';
linkset[0]+='<tr><td class="toplinks" align="center">Hollywood</td><td class="toplinks" align="center">Bollywood</td><td class="toplinks" align="center">Tollywood</td><td class="toplinks" align="center">Kollywood</td><td class="toplinks" align="center">Lollywood</td><td class="toplinks" align="center">Sports</td><td class="toplinks" align="center">Fun &amp; Humor</td><td class="toplinks" align="center">Videos</td><td class="toplinks" align="center">Others</td></tr>';
linkset[0]+='<tr><td class="bghollywood" align="center"><A href="/hollywood_home.php">Home</A><BR><A href="/hollywood_actresses.php">Actresses</A><BR><A href="/hollywood_actors.php">Actors</A><BR><A href="/hollywood_movies.php">Movies</A><BR><A href="/hollywood_videos.php">Videos</A><BR><A href="/hollywood_news.php">News</A><BR><A href="/hollywood_fashion.php">Awards</A></td><td class="bgbollywood" align="center"><A href="/bollywood_home.php">Home</A><BR><A href="/bollywood_actresses.php">Actresses</A><BR><A href="/bollywood_actors.php">Actors</A><BR><A href="/bollywood_movies.php">Movies</A><BR><A href="/bollywood_videos.php">Videos</A><BR><A href="/bollywood_news.php">News</A><BR><A href="/bollywood_fashion.php">Awards</A></td><td class="bgtollywood" align="center"><A href="/tollywood_home.php">Home</A><BR><A href="/tollywood_actresses.php">Actresses</A><BR><A href="/tollywood_actors.php">Actors</A><BR><A href="/tollywood_movies.php">Movies</A><BR><A href="/tollywood_videos.php">Videos</A><BR><A href="/tollywood_news.php">News</A><BR><A href="/tollywood_fashion.php">Awards</A></td><td class="bgkollywood" align="center"><A href="/kollywood_home.php">Home</A><BR><A href="/kollywood_actresses.php">Actresses</A><BR><A href="/kollywood_actors.php">Actors</A><BR><A href="/kollywood_movies.php">Movies</A><BR><A href="/kollywood_videos.php">Videos</A><BR><A href="/kollywood_news.php">News</A><BR><A href="/kollywood_fashion.php">Awards</A></td><td class="bglollywood" align="center"><A href="/lollywood_home.php">Home</A><BR><A href="/lollywood_actresses.php">Actresses</A><BR><A href="/lollywood_actors.php">Actors</A><BR><A href="/lollywood_movies.php">Movies</A><BR><A href="/lollywood_videos.php">Videos</A><BR><A href="/lollywood_news.php">News</A><BR><A href="/lollywood_fashion.php">Awards</A></td><td class="bgsports" align="center"><A href="/sports_home.php">Home</A><BR><A href="/sports_tennis.php">Tennis</A><BR><A href="/sports_cricket.php">Cricket</A><BR><A href="/sports_videos.php">Videos</A><BR><A href="/sports_news.php">News</A><BR><BR><A href="/shopping_home.php">Shopping</A></td><td class="bgfunandhumor" align="center"><A href="/funandhumor_home.php">Home</A><BR><A href="/modules.php?name=Forums">Forums</A><BR><A href="/funandhumor_news.php">Funny News</A><BR><A href="/modules.php?name=NukeJokes">Jokes</A><BR><A href="/modules.php?name=BollywoodSargam&amp;op=cartoon">Cartoons</A><BR><A href="/modules.php?name=Games">Games</A><BR><center>&nbsp;</center></td><td class="bgvideo" align="center"><A href="/video_home.php">Home</A><BR><A href="/video_hotclips.php">Hot clips</A><BR><A href="/video_movietrailers.php">Movie Trailers</A><BR><A href="/video_songclip.php">Song clips</A><BR><A href="/video_hollywoodmusicvideos.php">Music videos</A><BR><A href="/video_pakistanidramas.php">Dramas</A><BR><A href="/video_todayfeaturedvideo.php">Featured video</A></td><td class="bgothers" align="center"><A href="/Dating">Dating</A><BR><A href="/modules.php?name=Recipes">Recipes</A><BR><A href="/modules.php?name=Sargam_Radio">Radio</A><BR><A href="/modules.php?name=BollywoodSargam&amp;op=bollywoodlyrics">Lyrics</A><BR><A href="/hollywood_fashion.php">Awards</A><BR><A href="/bollywoodsargam_affiliates.php">Make $Money$</A></td></tr>';
linkset[0]+='<tr><td class="toplinks" align="center"><A href="http://www.BollywoodSargam.com/rss/bollywoodsargam_latestphotos_rss.php" target="_blank"><img src="http://img.bollywoodsargam.com/myimages/xmlrss2.png" alt="Click here to add BollywoodSARGAM Latest Photos RSS 2.0 feed to your RSS Reader" width="80" height="15" align="right"></A></td><td class="toplinks" align="center"><A href="http://www.BollywoodSargam.com/rss/bollywoodsargam_topphotos_rss.php" target="_blank"><img src="http://img.bollywoodsargam.com/myimages/xmlrss2.png" alt="Click here to add BollywoodSARGAM Most Popular Photos RSS 2.0 feed to your RSS Reader" width="80" height="15" align="right"></A></td><td class="toplinks" align="center"><A href="http://www.BollywoodSargam.com/rss/bollywoodsargam_latestnews_rss.php" target="_blank"><img src="http://img.bollywoodsargam.com/myimages/xmlrss2.png" alt="Click here to add BollywoodSARGAM Latest News RSS 2.0 feed to your RSS Reader" width="80" height="15" align="right"></A></td><td class="toplinks" align="center"><A href="http://www.BollywoodSargam.com/rss/bollywoodsargam_topnews_rss.php" target="_blank"><img src="http://img.bollywoodsargam.com/myimages/xmlrss2.png" alt="Click here to add BollywoodSARGAM Most Popular News RSS 2.0 feed to your RSS Reader" width="80" height="15" align="right"></A></td><td class="toplinks" align="center"><a href="http://feeds.feedburner.com/BollywoodSARGAMLatestEvents" target="_blank"><img src="http://feeds.feedburner.com/~fc/BollywoodSARGAMLatestEvents?bg=99CCFF&amp;fg=444444&amp;anim=1" height="26" width="80" style="border:0" alt="Click here to add BollywoodSARGAM Latest Videos Photos and News Feedburner RSS 2.0 feed to your RSS Reader"></a></td><td class="toplinks" align="center"><a href="http://feeds.feedburner.com/BollywoodSARGAMLatestVideos" target="_blank"><img src="http://feeds.feedburner.com/~fc/BollywoodSARGAMLatestVideos?bg=99CCFF&amp;fg=444444&amp;anim=1" height="26" width="80" style="border:0" alt="Click here to add BollywoodSARGAM Latest Videos Feedburner RSS 2.0 feed to your RSS Reader"></a></td><td class="toplinks" align="center"><a href="/rss/"><small>All RSS Feeds</small></a></td><td class="toplinks" align="center"><A href="http://www.BollywoodSargam.com/rss/bollywoodsargam_videos_rss.php" target="_blank"><img src="http://img.bollywoodsargam.com/myimages/xmlrss2.png" alt="Click here to add BollywoodSARGAM Latest Videos RSS 2.0 feed to your RSS Reader" width="80" height="15" align="right"></A></td><td class="toplinks" align="center"><A href="http://www.BollywoodSargam.com/rss/bollywoodsargam_videos_rss.php?sort=top" target="_blank"><img src="http://img.bollywoodsargam.com/myimages/xmlrss2.png" alt="Click here to add BollywoodSARGAM Most Popular Videos RSS 2.0 feed to your RSS Reader" width="80" height="15" align="right"></A></td></tr>';
linkset[0]+='</table>';
linkset[1]='<table border="0" width="600" cellspacing="1" cellpadding="0">';
linkset[1]+='<tr><td align="center"><a href="http://del.icio.us/post?v=4&partner=bollywoodsargam&noui&jump=close&url='+encodeURIComponent(location.href);
linkset[1]+='"&title='+encodeURIComponent(document.title);
linkset[1]+='" target="_blank"><img src="http://img.bollywoodsargam.com/myimages/add_to_delicious.gif" width="10" height="10" alt="Bookmark this page on deli.cio.us">&nbsp;Add to del.icio.us</a>' ;
linkset[1]+='</td><td><A href="http://add.my.yahoo.com/rss?url='+encodeURIComponent(location.href);
linkset[1]+='" target="_blank"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif" alt="Click here to add this page to MY YAHOO" width="91" height="17"></a></td><td><A href="http://feeds.my.aol.com/add.jsp?url='+encodeURIComponent(location.href);
linkset[1]+='" target="_blank"><img src="http://o.aolcdn.com/myfeeds/vis/myaol_cta1.gif" alt="Click here to add this page to MY AOL" width="63" height="14"></a></td><td><A href="http://fusion.google.com/add?feedurl='+encodeURIComponent(location.href);
linkset[1]+='" target="_blank"><img src="http://buttons.googlesyndication.com/fusion/add.gif" alt="Click here to add this page to Google" width="104" height="17"></a></td><td><A href="http://client.pluck.com/pluckit/prompt.aspx?GCID=C12286x053&a='+encodeURIComponent(location.href);
linkset[1]+='" target="_blank"><img src="http://www.pluck.com/images/rss-pluck.gif" alt="Click here to add this page to Pluck" width="91" height="17"></a></TD></tr>';
linkset[1]+='<tr><td align="center"><A href="http://www.rojo.com/add-subscription?resource='+encodeURIComponent(location.href);
linkset[1]+='" target="_blank"><img src="http://www.rojo.com/skins/static/images/add-to-rojo.gif" alt="Click here to add this page to ROJO" width="52" height="17"></a></td><td><A href="http://www.bloglines.com/sub/'+encodeURIComponent(location.href);
linkset[1]+='" target="_blank"><img src="http://www.bloglines.com/images/sub_modern5.gif" alt="Click here to add this page to BLOGLINES" width="80" height="15"></a></td><td><A href="http://www.netvibes.com/subscribe.php?url='+encodeURIComponent(location.href);
linkset[1]+='" target="_blank"><img src="http://www.netvibes.com/img/add2netvibes.gif" alt="Click here to add this page to NETVIBES" width="91" height="17"></a></td><td><A href="http://www.pageflakes.com/subscribe.aspx?url='+encodeURIComponent(location.href);
linkset[1]+='" target="_blank"><img src="http://www.pageflakes.com/subscribe2.gif" alt="Click here to add this page to PAGEFLAKES" width="81" height="17"></a></td><td><A href="http://www.icra.org/sitelabel/" target="_blank"><img src="http://img.bollywoodsargam.com/myimages/icra_88x31.gif" alt="Labelled with ICRA - Click here to check BollywoodSARGAM content rating by ICRA" width="88" height="31"></a></TD></tr>';
linkset[1]+='<TR><td align="center"><a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add this page to blinklist" target="_blank">Blinklist</a></td><td align="center"><a href="http://digg.com/submit?phase=2&amp;url='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add to digg" target="_blank">Digg</a></td><td align="center"><a href="http://cgi.fark.com/cgi/fark/edit.pl?new_url='+encodeURIComponent(location.href);
linkset[1]+='&amp;linktype=Misc" alt="Add to fark" target="_blank">Fark</a></td><td align="center"><a href="http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add to furl" target="_blank">Furl It</a></td><td align="center"><a href="http://ma.gnolia.com/bookmarklet/snap/add?url='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add to magnolia" target="_blank">Magnolia</a></td></tr><tr><td align="center"><a href="http://www.newsvine.com/_tools/seed&amp;save?u='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add to newsvine" target="_blank">newsvine</a></td><td align="center"><a href="http://reddit.com/submit?url='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add to reddit" target="_blank">Reddit</a></td><td align="center"><a href="http://www.simpy.com/simpy/LinkAdd.do?href='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add to simpy" target="_blank">Simpy</a></td><td align="center"><a href="http://www.spurl.net/spurl.php?url='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add to spurl" target="_blank">Spurl</a></td><td align="center"><a href="http://synergy2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add to myyahoo" target="_blank" target="_blank">My Yahoo</a></td></tr><tr><td align="center"><a href="http://www.shadows.com/features/tcr.htm?url='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add to shadows" target="_blank">Shadows</a></td><td align="center"><a href="http://www.sync2it.com/addbm.php?url='+encodeURIComponent(location.href);
linkset[1]+='" alt="Add to sync2it" target="_blank">Sync2it</a></td><td align="center"><a href="http://www.blogarithm.com/subrequest.php?BlogURL='+encodeURIComponent(location.href);
linkset[1]+='" alt="Monitor BollywoodSARGAM with Blogarithm" target="_blank">Monitor with Blogarithm</a></td><td align="center"><a href="http://www.meneame.net/submit.php?url='+encodeURIComponent(location.href);
linkset[1]+='" alt="Meneame" target="_blank">Meneame</a></TD><td align="center">&nbsp;</td></tr></table>';
////No need to edit beyond here
var ie5=document.all && !window.opera;
var ns6=document.getElementById;
if(ie5||ns6){document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>');}
function iecompattest(){
/*extern document */
return (document.compatMode && document.compatMode.indexOf("CSS")!==-1)? document.documentElement : document.body;
}
function showfooterjs(){
/*extern document, window */
var ie5= (document.all && !window.opera) ;
var ns6= (document.getElementById) ;
if(ie5 || ns6){
document.write('<a name="#navigation"></a><small>| <A href="/">Home</a> | <A href="/hollywood_home.php">Hollywood</a> | <A href="/bollywood_home.php">Bollywood</a> | <A href="/tollywood_home.php">Tollywood</a> | <A href="/kollywood_home.php">Kollywood</a> | <A href="/lollywood_home.php">Lollywood</a> | <A href="/video_home.php">Videos</a> | <A href="/sports_home.php">Sports</a> | <A href="/funandhumor_home.php">Fun & Humor</a> | <A href="/greetingcards_home.php">Greetings</a> | <A href="http://astore.amazon.com/bollywoodsarg-20">DVD Store</a> | <A href="/Dating/">Dating</a> | <A href="/modules.php?name=NukeJokes">Jokes</a> | <A href="/modules.php?name=Forums">Forums</a> | <A href="/rss/">RSS Feeds</a> |<br /><A href="http://www.BollywoodSARGAM.US" target="_blank">Corporate Website</a> | <A href="/bollywoodsargam_aboutus.php">About Us</a> | <A href="/bollywoodsargam_traffic.html">Traffic stats</a> | <A href="/indian_advertising.html">Advertise Here</a> | <A href="/bollywoodsargam_affiliates.php">Affiliate Programs</a> | <A href="/bollywoodsargam_termsofservice.php">Terms Of Service</a> | <A href="/bollywoodsargam_privacy.php">Privacy Policy</a> | <A href="/bollywoodsargam_contact_us.html">Contact Us</a> | <A href="/bollywoodsargam_recommend_us.html">Recommend Us</a> | <A href="/bollywoodsargam_sitemap.php">Site Map</a><br />Copyright &copy; <a href="/">BollywoodSARGAM.com</a></small> <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/" target="_blank"><img alt="You are free to Share, copy, distribute, display, perform, Remix to make derivative works under Creative Commons License" style="border-width: 0" src="http://creativecommons.org/images/public/somerights20.png"/></a><p><form method="post" action="/bollywoodsargam_search.php" style="height: 32px;">Search <input type="text" name="search_term" size="20" maxlength="200" value="" style="width: 250px; height: 30px; font-size: 150%;"> <Input type="submit" value="Go!" style="height: 30px; font-size: 120%;"></FORM></p><p><form method="post" action="/shopping_search.php">Shop <input type="text" name="search_term" size="20" maxlength="200" value=""> <Input type="submit" value="Shop"></FORM></p>');
}
}
function showmenu(e, which, optWidth){
/*extern clearhidemenu, defaultMenuWidth, document, event, eventX, eventY, ie5, iecompattest, menuobj, window */
if(!document.all&&!document.getElementById){return;}
clearhidemenu();
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu");
menuobj.innerHTML=which;
menuobj.style.width=(typeof optWidth!=="undefined")? optWidth : defaultMenuWidth;
menuobj.contentwidth=menuobj.offsetWidth;
menuobj.contentheight=menuobj.offsetHeight;
eventX=ie5? event.clientX : e.clientX;
eventY=ie5? event.clientY : e.clientY;
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX;
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY;
//if the horizontal distance isn't enough to accomodate the width of the context menu
if(rightedge<menuobj.contentwidth){
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px";
}else{
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px";
}
//same concept with the vertical position
if(bottomedge<menuobj.contentheight){menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px";}
else{menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px";}
menuobj.style.visibility="visible";
return false;
}
function contains_ns6(a, b){
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode){if((b = b.parentNode) === a){return true;}}
return false;
}
function hidemenu(){/*extern menuobj, window */
if(window.menuobj){menuobj.style.visibility="hidden";}}
function dynamichide(e){/*extern contains_ns6, hidemenu, ie5, menuobj, ns6 */
if(ie5&&!menuobj.contains(e.toElement)){hidemenu();}else if(ns6&&e.currentTarget!== e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)){hidemenu();}}
function delayhidemenu(){/*extern delayhide, setTimeout */
delayhide=setTimeout("hidemenu()",500);}
function clearhidemenu(){/*extern clearTimeout, delayhide, window */
if(window.delayhide){clearTimeout(delayhide);}}
if(ie5||ns6){document.onclick=hidemenu;}

//** Tab Content script v2.0- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
//** Updated Oct 7th, 07 to version 2.0. Contains numerous improvements:
//   -Added Auto Mode: Script auto rotates the tabs based on an interval, until a tab is explicitly selected
//   -Ability to expand/contract arbitrary DIVs on the page as the tabbed content is expanded/ contracted
//   -Ability to dynamically select a tab either based on its position within its peers, or its ID attribute (give the target tab one 1st)
//   -Ability to set where the CSS classname "selected" get assigned- either to the target tab's link ("A"), or its parent container
//** Updated Feb 18th, 08 to version 2.1: Adds a "tabinstance.cycleit(dir)" method to cycle forward or backward between tabs dynamically
//** Updated April 8th, 08 to version 2.2: Adds support for expanding a tab using a URL parameter (ie: http://mysite.com/tabcontent.htm?tabinterfaceid=0) 

////NO NEED TO EDIT BELOW////////////////////////

function ddtabcontent(tabinterfaceid){
this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container
this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container
this.enabletabpersistence=true
this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container
this.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] array
this.subcontentids=[] //Array to store ids of the sub contents ("rel" attr values)
this.revcontentids=[] //Array to store ids of arbitrary contents to expand/contact as well ("rev" attr values)
this.selectedClassTarget="link" //keyword to indicate which target element to assign "selected" CSS class ("linkparent" or "link")
}

ddtabcontent.getCookie=function(Name){ 
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return ""
}

ddtabcontent.setCookie=function(name, value){
document.cookie = name+"="+value+";path=/" //cookie value is domain wide (path=/)
}

ddtabcontent.prototype={

expandit:function(tabid_or_position){ //PUBLIC function to select a tab either by its ID or position(int) within its peers
this.cancelautorun() //stop auto cycling of tabs (if running)
var tabref=""
try{
if (typeof tabid_or_position=="string" && document.getElementById(tabid_or_position).getAttribute("rel")) //if specified tab contains "rel" attr
tabref=document.getElementById(tabid_or_position)
else if (parseInt(tabid_or_position)!=NaN && this.tabs[tabid_or_position].getAttribute("rel")) //if specified tab contains "rel" attr
tabref=this.tabs[tabid_or_position]
}
catch(err){alert("Invalid Tab ID or position entered!")}
if (tabref!="") //if a valid tab is found based on function parameter
this.expandtab(tabref) //expand this tab
},

cycleit:function(dir, autorun){ //PUBLIC function to move foward or backwards through each hot tab (tabinstance.cycleit('foward/back') )
if (dir=="next"){
var currentTabIndex=(this.currentTabIndex<this.hottabspositions.length-1)? this.currentTabIndex+1 : 0
}
else if (dir=="prev"){
var currentTabIndex=(this.currentTabIndex>0)? this.currentTabIndex-1 : this.hottabspositions.length-1
}
if (typeof autorun=="undefined") //if cycleit() is being called by user, versus autorun() function
this.cancelautorun() //stop auto cycling of tabs (if running)
this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]])
},

setpersist:function(bool){ //PUBLIC function to toggle persistence feature
this.enabletabpersistence=bool
},

setselectedClassTarget:function(objstr){ //PUBLIC function to set which target element to assign "selected" CSS class ("linkparent" or "link")
this.selectedClassTarget=objstr || "link"
},

getselectedClassTarget:function(tabref){ //Returns target element to assign "selected" CSS class to
return (this.selectedClassTarget==("linkparent".toLowerCase()))? tabref.parentNode : tabref
},

urlparamselect:function(tabinterfaceid){
var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)", "i")) //check for "?tabinterfaceid=2" in URL
return (result==null)? null : parseInt(RegExp.$1) //returns null or index, where index (int) is the selected tab's index
},

expandtab:function(tabref){
var subcontentid=tabref.getAttribute("rel") //Get id of subcontent to expand
//Get "rev" attr as a string of IDs in the format ",john,george,trey,etc," to easily search through
var associatedrevids=(tabref.getAttribute("rev"))? ","+tabref.getAttribute("rev").replace(/\s+/, "")+"," : ""
this.expandsubcontent(subcontentid)
this.expandrevcontent(associatedrevids)
for (var i=0; i<this.tabs.length; i++){ //Loop through all tabs, and assign only the selected tab the CSS class "selected"
this.getselectedClassTarget(this.tabs[i]).className=(this.tabs[i].getAttribute("rel")==subcontentid)? "selected" : ""
}
if (this.enabletabpersistence) //if persistence enabled, save selected tab position(int) relative to its peers
ddtabcontent.setCookie(this.tabinterfaceid, tabref.tabposition)
this.setcurrenttabindex(tabref.tabposition) //remember position of selected tab within hottabspositions[] array
},

expandsubcontent:function(subcontentid){
for (var i=0; i<this.subcontentids.length; i++){
var subcontent=document.getElementById(this.subcontentids[i]) //cache current subcontent obj (in for loop)
subcontent.style.display=(subcontent.id==subcontentid)? "block" : "none" //"show" or hide sub content based on matching id attr value
}
},

expandrevcontent:function(associatedrevids){
var allrevids=this.revcontentids
for (var i=0; i<allrevids.length; i++){ //Loop through rev attributes for all tabs in this tab interface
//if any values stored within associatedrevids matches one within allrevids, expand that DIV, otherwise, contract it
document.getElementById(allrevids[i]).style.display=(associatedrevids.indexOf(","+allrevids[i]+",")!=-1)? "block" : "none"
}
},

setcurrenttabindex:function(tabposition){ //store current position of tab (within hottabspositions[] array)
for (var i=0; i<this.hottabspositions.length; i++){
if (tabposition==this.hottabspositions[i]){
this.currentTabIndex=i
break
}
}
},

autorun:function(){ //function to auto cycle through and select tabs based on a set interval
this.cycleit('next', true)
},

cancelautorun:function(){
if (typeof this.autoruntimer!="undefined")
clearInterval(this.autoruntimer)
},

init:function(automodeperiod){
var persistedtab=ddtabcontent.getCookie(this.tabinterfaceid) //get position of persisted tab (applicable if persistence is enabled)
var selectedtab=-1 //Currently selected tab index (-1 meaning none)
var selectedtabfromurl=this.urlparamselect(this.tabinterfaceid) //returns null or index from: tabcontent.htm?tabinterfaceid=index
this.automodeperiod=automodeperiod || 0
for (var i=0; i<this.tabs.length; i++){
this.tabs[i].tabposition=i //remember position of tab relative to its peers
if (this.tabs[i].getAttribute("rel")){
var tabinstance=this
this.hottabspositions[this.hottabspositions.length]=i //store position of "hot" tab ("rel" attr defined) relative to its peers
this.subcontentids[this.subcontentids.length]=this.tabs[i].getAttribute("rel") //store id of sub content ("rel" attr value)
this.tabs[i].onclick=function(){
tabinstance.expandtab(this)
tabinstance.cancelautorun() //stop auto cycling of tabs (if running)
return false
}
if (this.tabs[i].getAttribute("rev")){ //if "rev" attr defined, store each value within "rev" as an array element
this.revcontentids=this.revcontentids.concat(this.tabs[i].getAttribute("rev").split(/\s*,\s*/))
}
if (selectedtabfromurl==i || this.enabletabpersistence && selectedtab==-1 && parseInt(persistedtab)==i || !this.enabletabpersistence && selectedtab==-1 && this.getselectedClassTarget(this.tabs[i]).className=="selected"){
selectedtab=i //Selected tab index, if found
}
}
} //END for loop
if (selectedtab!=-1) //if a valid default selected tab index is found
this.expandtab(this.tabs[selectedtab]) //expand selected tab (either from URL parameter, persistent feature, or class="selected" class)
else //if no valid default selected index found
this.expandtab(this.tabs[this.hottabspositions[0]]) //Just select first tab that contains a "rel" attr
if (parseInt(this.automodeperiod)>500 && this.hottabspositions.length>1){
this.autoruntimer=setInterval(function(){tabinstance.autorun()}, this.automodeperiod)
}
} //END int() function

} //END Prototype assignment